#include <buola/scene/cobject.h>
#include <buola/scene/ctransform.h>

namespace buola { namespace scene {

CObject::CObject()
{
}

CObject::~CObject()
{
}

void CObject::AttachTo(PTransform pTransform)
{
    if(mTransform==pTransform) return;
    if(mTransform)
        mTransform->RemoveObject(this);
    mTransform=pTransform;
    if(mTransform)
        mTransform->AddObject(this);
}

/*namespace gl*/ } /*namespace buola*/ }
